
<?php $this->load->helper('HTML');

echo link_tag('css/style2.css');
echo link_tag('images/favicon.ico','shortcut icon','image/x-icon');
?>
<div id="page1"><div id="wrapper">
	<?php $this->load->view('admin_views/header'); ?><hr />
      
        <script type="text/javascript">
	    $(this).ready( function() {
    		$("#intid_unit").autocomplete({
      			minLength: 2,
      			source: 
        		function(req, add){
          			$.ajax({
		        		url: "<?php echo base_url(); ?>dealer/lookupUnit",
		          		dataType: 'json',
		          		type: 'POST',
		          		data: req,
		          		success:    
		            	function(data){
		              		if(data.response =="true"){
		                 		add(data.message);
		              		}
		            	},
              		});
         		},
         	select: 
         		function(event, ui) {
            		$("#result").append(
            			"<input type='hidden' id='intid_unit' name='intid_unit' value='" + ui.item.id + "' size='30' />"
            		);           		
         		},		
    		});
	    });
		//-----free-----//
	/*	$(this).ready( function() {
    		$("#intid_barang_free").autocomplete({
      			minLength: 2,
      			source: 
        		function(req, add){
          			$.ajax({
		        		url: "<?php //echo base_url(); ?>promosi/lookupFree",
		          		dataType: 'json',
		          		type: 'POST',
		          		data: req,
		          		success:    
		            	function(data){
		              		if(data.response =="true"){
		                 		add(data.message);
		              		}
		            	},
              		});
         		},
         	select: 
         		function(event, ui) {
            		$("#result2").append(
            			"<input type='hidden' id='intid_barang_free' name='intid_barang_free' value='" + ui.item.id + "' size='30' />"
            		);           		
         		},		
    		});
	    });*/
	    </script>
</div>

	<div id="page">
	<div id="page-bgtop">
		<div id="content">
        <div class="post">
          <h2 class="title">data dealer </h2>
				<p class="meta">Sunday, April 26, 2011 7:27 AM Posted by <a href="#">Someone</a></p>
				<div class="entry">
        <form action=""  method="post" >
        <table width="95%" border="0" cellpadding="0" cellspacing="0" id="data" align="center">
		<tr align="center">
        <td  class="title "colspan="2">Data Pribadi</td>
        </tr>
        
      <tr>
        <td>&nbsp;Nama </td>
        <td><input type="text" name="strnama_dealer" size="30" value="<?php echo $strnama_dealer?>"/></td>
      </tr>
      <tr>
        <td>&nbsp;No. KTP</td>
        <td><input type="text" name="strno_ktp" size="50" value="<?php echo $strno_ktp ?>"/></td>
      </tr>
      <tr>
        <td>&nbsp;Alamat</td>
        <td><input type="text" name="stralamat" size="50" value="<?php echo $stralamat ?>"/></td>
      </tr>
      <tr>
        <td>&nbsp; No. Telepon</td>
        <td><input type="text" name="strtlp" size="50" value="<?php echo $strtlp?>"/></td>
      </tr>
      <tr>
        <td>&nbsp;Tempat Lahir</td>
        <td><input type="text" name="strtmp_lahir" size="50" value="<?php echo $strtmp_lahir?>"/>        </td>
      </tr>
      <tr>
        <td>&nbsp;Tanggal Lahir</td>
        <td><input type="text" name="datetgl_lahir" id="demo2" maxlength="25" size="25" class="text_box" value="<?php echo $datetgl_lahir ?>"/>
          <a href="javascript:NewCssCal('demo2','yyyymmdd')"> <img src="<?php echo base_url();?>images/cal.gif" width="16" height="16" alt="Pick a date" /></a></td></tr>
      <tr>
        <td>&nbsp;Agama</td>
        <td><input type="text" name="stragama" size="50" value="<?php echo $stragama ?>"/></td>
      </tr>
      <tr align="center">
        <td  class="title "colspan="2">Data Keanggotaan</td>
        </tr>
        <tr>
        <td>&nbsp;No Kartu</td>
        <td><input type="text" name="strkode_dealer" size="50" value="<?php echo $strkode_dealer ?>"/></td>
      </tr>
        <tr>
          <td>&nbsp;Upline</td>
          <td><input type="text" name="strnama_upline" size="50" value="<?php echo $strnama_upline?>"/></td>
        </tr>
        <tr>
          <td>&nbsp;No Kartu Upline</td>
          <td><input type="text" name="strkode_upline" size="30" value="<?php echo $strkode_upline?>"/></td>
        </tr>
        <tr>
          <td>&nbsp;Unit</td>
          <td>&nbsp;<input type="text" name="intid_unit"  id="intid_unit" size="30" value="<?php echo $intid_unit; ?>" /><div id="result"></div></td>
        </tr>
        <tr>
          <td>&nbsp;Cabang</td>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td>&nbsp;Manager</td>
          <td>&nbsp;</td>
        </tr>
        <tr align="center">
        <td  class="title "colspan="2">Data Bank</td>
        </tr>
        <tr>
        <td>&nbsp;Nama Bank</td>
        <td>&nbsp;</td>
        </tr>
        <tr>
          <td>&nbsp;No. Rekening</td>
          <td><input type="text" name="intno_rekening" size="30" value="<?php echo $intno_rekening?>"/></td>
        </tr> <tr>
            <th></th>
            <td><input type="submit" value="Edit" class="button"/>
              &nbsp;
              <input class="button" type="button" value="Cancel" onclick="location.href='<?php echo base_url()?>dealer';"/></td>
        </tr>
</table>
<table width="95%" border="0" cellpadding="0" cellspacing="0" id="data" align="center">
<tr>
<?php /*if ($privilege == 1) */echo "<td  align='left' style='width:75%' ><img  src='".base_url()."images/img12.png' align='absmiddle'/>".anchor('dealer', 'Kembali')."</td>";/* else echo ""*/;?>
<td align="right" style="width:75%" ><b><?php //echo "Jumlah Data : ". $jumlah_data;?></b></td></tr>
</table>
        </form>
		  </div>
		  </div>
			
		</div>
		<!-- end #content -->
		<?php $this->load->view('admin_views/sidebar_master'); ?><!-- end #sidebar -->
		<div style="clear: both;">&nbsp;</div>
	</div>
	</div>
	<!-- end #page -->
	<div id="footer-bgcontent">
	<?php $this->load->view('admin_views/footer'); ?></div>
	<!-- end #footer -->

